import request from "@/utils/request";
// 查询
export function getaooroval(pageNum, pageSize) {
  return request({
    url: `/system/record/list?pageNum=${pageNum}&pageSize=${pageSize}`,
    method: "get",
  });
}
// 同意请假或驳回
// export function putaooroval(data) {
//   return request({
//     url: "/vacation/reason",
//     method: "put",
//     data: {
//       state: data.state,
//       id: data.id,
//       studentId: data.studentId,
//     },
//   });
// }
// 老师审批
export function arrgeaooroval(data) {
  return request({
    url: "/system/record/approve",
    method: "put",
    data: {
      state: data.state,
      id: data.id,
      studentId: data.studentId,
    },
  });
}
// 老师驳回
export function rejectaooroval(data) {
  return request({
    url: "/system/record/reject",
    method: "put",
    data: {
      state: data.state,
      id: data.id,
      studentId: data.studentId,
    },
  });
}
// 详细查询
export function Getaoo(data) {
  return request({
    url: ` /system/record/list?${data}`,
    method: "get",
    data: state,
  });
}
